package com.oppo.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 损益基础表(t_project_profit_basis)表实体类
 *
 * @author makejava
 * @since 2022-01-28 16:23:02
 */

@SuppressWarnings("unused")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_project_profit_basis")
@ApiModel(description = "损益基础表")
public class ProjectProfitBasis implements Serializable {

    private static final long serialVersionUID = -11363450379824115L;

    /** ID */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id")
    private Long id;

    /** 项目ID, 对应t_project_draft.ID,加唯一约束 */
    @ApiModelProperty(value = "项目ID, 对应t_project_draft.ID,加唯一约束")
    @TableField(value = "project_id")
    private Long projectId;

    /** 项目归属 */
    @ApiModelProperty(value = "项目归属")
    @TableField(value = "project_owner")
    private String projectOwner;

    /** 产品系列 */
    @ApiModelProperty(value = "产品系列")
    @TableField(value = "product_series")
    private String productSeries;

    /** 产品机型 */
    @ApiModelProperty(value = "产品机型")
    @TableField(value = "product_model")
    private String productModel;

    /** 应用ID */
    @ApiModelProperty(value = "应用ID")
    @TableField(value = "app_id")
    private Byte appId;

    /** 关联的上一代产品 */
    @ApiModelProperty(value = "关联的上一代产品")
    @TableField(value = "prev_basis_id")
    private Long prevBasisId;

    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_id")
    private String createId;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Integer createTime;

    /** 更新人 */
    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_id")
    private String updateId;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Integer updateTime;


}
